← Index
NYTProf Performance Profile   
For starman worker -M FindBin --max-requests 50 --workers 2 --user=kohadev-koha --group kohadev-koha --pid /var/run/koha/kohadev/plack.pid --daemonize --access-log /var/log/koha/kohadev/plack.log --error-log /var/log/koha/kohadev/plack-error.log -E deployment --socket /var/run/koha/kohadev/plack.sock /etc/koha/sites/kohadev/plack.psgi
  Run on Fri Jan 8 14:31:06 2016
Reported on Fri Jan 8 14:31:39 2016

Filename(eval 1136)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78]
StatementsExecuted 10 statements in 15µs
Eval Invoked At/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm line 78
Sibling evals1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
1119µs11µsTemplate::Document::::__ANON__[:16]Template::Document::__ANON__[:16]
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1
# spent 11µs (9+2) within Template::Document::__ANON__[(eval 1136)[/usr/lib/x86_64-linux-gnu/perl5/5.20/Template/Document.pm:78]:16] which was called: # once (9µs+2µs) by Template::Document::process at line 163 of Template/Document.pm
sub {
21300ns my $context = shift || die "template sub called without context\n";
312µs12µs my $stash = $context->stash;
# spent 2µs making 1 call to Template::Context::stash
41300ns my $output = '';
51100ns my $_tt_error;
6
722µs eval { BLOCK: {
81300ns$output .= "<script type=\"text/javascript\">\n//<![CDATA[\nfunction keep_text(clicked_index) {\n var searchboxes = document.getElementsByClassName(\"head-searchbox\");\n var persist = searchboxes[0].value;\n\n for (i = 0; i < searchboxes.length - 1; i++) {\n if (searchboxes[i].value != searchboxes[i+1].value) {\n if (i === searchboxes.length-2) {\n if (searchboxes[i].value != searchboxes[0].value) {\n persist = searchboxes[i].value;\n } else if (searchboxes.length === 2) {\n if (clicked_index === 0) {\n persist = searchboxes[1].value;\n }\n } else {\n persist = searchboxes[i+1].value;\n }\n } else if (searchboxes[i+1].value != searchboxes[i+2].value) {\n persist = searchboxes[i+1].value;\n }\n }\n }\n\n for (i = 0; i < searchboxes.length; i++) {\n searchboxes[i].value = persist;\n }\n}\n//]]>\n</script>\n";
9 } };
101100ns if ($@) {
11 $_tt_error = $context->catch($@, \$output);
12 die $_tt_error unless $_tt_error->type eq 'return';
13 }
14
1515µs return $output;
16}
1715µs
18;